﻿using System;

namespace Binary_Tree
{
    class TreeNode<T>
        where T : IComparable<T>
    {
        public TreeNode<T> LeftNode;
        public TreeNode<T> RightNode;
        public T Data;

        public TreeNode(T data)
        {
            LeftNode = RightNode = null;
            Data = data;
        }
    }
}
